package entities;
import java.sql.Date;



/**
 * @author HungVM
 * @version 1.0
 * @created 12-Thg10-2011 10:44:36 CH
 */
public class Payment {

	private Date datePaid;
	private double fineAmount;
	private double interest;
	private LoanContact loancontact;
	private int month;
	private double payment;
	private int paymentId;
        private Date dureDate;
	private boolean status;
	private double totalPay;
	public Payment(){
                
	}

    public Payment(Date datePaid, double fineAmount, double interest, LoanContact loancontact, int month, double payment, int paymentId, Date dureDate, boolean status, double totalPay) {
        this.datePaid = datePaid;
        this.fineAmount = fineAmount;
        this.interest = interest;
        this.loancontact = loancontact;
        this.month = month;
        this.payment = payment;
        this.paymentId = paymentId;
        this.dureDate = dureDate;
        this.status = status;
        this.totalPay = totalPay;
    }

    public Date getDatePaid() {
        return datePaid;
    }

    public Date getDureDate() {
        return dureDate;
    }

    public double getFineAmount() {
        return fineAmount;
    }

    public double getInterest() {
        return interest;
    }

    public LoanContact getLoan() {
        return loancontact;
    }

    public int getMonth() {
        return month;
    }

    public double getPayment() {
        return payment;
    }

    public int getPaymentId() {
        return paymentId;
    }

    public boolean isStatus() {
        return status;
    }

    public double getTotalPay() {
        return totalPay;
    }

    public void setDatePaid(Date datePaid) {
        this.datePaid = datePaid;
    }

    public void setDureDate(Date dureDate) {
        this.dureDate = dureDate;
    }

    public void setFineAmount(double fineAmount) {
        this.fineAmount = fineAmount;
    }

    public void setInterest(double interest) {
        this.interest = interest;
    }

    public void setLoan(LoanContact loancontact) {
        this.loancontact= loancontact;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public void setPayment(double payment) {
        this.payment = payment;
    }

    public void setPaymentId(int paymentId) {
        this.paymentId = paymentId;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public void setTotalPay(double totalPay) {
        this.totalPay = totalPay;
    }

    
    
    public void finalize() throws Throwable {

    }
        
}